package com.merry.spring5.i18n;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @author ybzou
 * java的i18n的实现
 */
public class javaI18nResource {

    public static void main(String[] args) {
        //会拼接成 message_zh_CN.properties.
        ResourceBundle bundle = ResourceBundle.getBundle("message",
                Locale.CHINA);
        String test = bundle.getString("test");
        System.out.println(test);
    }
}
